<include file="public@header"/>

</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>已发布</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20">


        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th style="width: 200px">时间</th>
                <th style="width: 100px">所属项目</th>
                <th>描述</th>
                <th>当前状态</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <volist name="data" id="v">
                <tr>
                    <td>{$v.date}</td>
                    <td>{$v['lname']}</td>
                    <td style="table-layout: fixed;width: 500px">{$v.desc}</td>
                    <td>
                        <?php if($v['restatus'] == 1){ ?>
                            <span class="label label-danger">项目经理驳回</span>
                        <?php }elseif($v['restatus'] == 2){?>
                        <span class="label label-danger">总经理驳回</span>
                        <?php }elseif($v['restatus'] == 3){?>
                        <span class="label label-danger">财务驳回</span>
                        <?php }elseif($v['status'] == 0){?>
                        <span class="label label-warning">审核中</span>
                        <?php }elseif($v['status'] == 1){?>
                        <span class="label label-success">项目经理通过</span>
                        <?php }elseif($v['status'] == 2){?>
                        <span class="label label-success">总经理经理通过</span>
                        <?php }elseif($v['status'] == 3){?>
                        <span class="label label-success">已完成</span>
                        <?php }?>
                    </td>
                    <td>
                        <a class="btn btn-xs btn-primary js-ajax-submit"
                           href="{:url('see',array('id'=>$v['id']))}">查看详情</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>